<?php
namespace Server;

return array(
    'controllers' => array(
        'invokables' => array(
            'Server\Controller\ContatoRest' => 'Server\Controller\ContatoRestController'
        ),
    ),
    'router' => array(
        'routes' => array(
            'server' => array(
                'type'    => 'Segment',
                'options' => array(
                    'route'    => '/api/server[/:id]',
                    'defaults' => array(
                        '__NAMESPACE__' => 'Server\Controller',
                        'controller'    => 'ContatoRest'
                    ),
                    'constraints' => array(
                        'id' => '[0-9]+'	
                    )
                ),
            ),           
        ),
    ),
    'view_manager' => array(
        'strategies' => array(
    		'ViewJsonStrategy'
    	)
    ),
    'doctrine' => array(
    		'driver' => array(
    				__NAMESPACE__ . '_driver' => array(
    						'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver',
    						'cache' => 'array',
    						'paths' => array(__DIR__ . '/../src/' . __NAMESPACE__ . '/Entity')
    				),
    				'orm_default' => array(
    						'drivers' => array(
    								__NAMESPACE__ . '\Entity' => __NAMESPACE__ . '_driver'
    						)
    				)
    		)
    ),
);
